<!DOCTYPE html>
<html lang="en">
<head>
    <#import "../common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <!-- header -->
	<@netCommon.commonHeader />
    <!-- left -->
	<@netCommon.commonLeft "user" "user" />

    <div class="content-wrapper">

        <section class="content">

            <div class="row">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">个人信息</h3>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-condensed">
                            <tr>
                                <td>登录名：</td>
                                <td><#if user?exists >${user.username!''}</#if></td>
                            </tr>
                            <tr>
                                <td>姓名：</td>
                                <td><#if user?exists >${user.name!''}</#if></td>
                            </tr>
                            <tr>
                                <td>手机：</td>
                                <td><#if user?exists >${user.phone!''}</#if></td>
                            </tr>
                            <tr>
                                <td>邮箱：</td>
                                <td><#if user?exists >${user.mail!''}</#if></td>
                            </tr>
                            <tr>
                                <td>部门：</td>
                                <td><#if user?exists >${user.depName!''}</#if></td>
                            </tr>
                            <tr>
                                <td>备注：</td>
                                <td><#if user?exists >${user.remark!''}</#if></td>
                            </tr>
                            <tr>
                                <td>注册时间：</td>
                                <td><#if user?exists >${user.createTime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>
                            </tr>
                            <tr>
                                <td>更新时间：</td>
                                <td><#if user?exists >${user.updateTime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="col-md-2">
                                        <button id="updateUser" type="button" class="btn btn-block btn-primary">修改信息</button>
                                    </div>
                                    <div class="col-md-2">
                                        <button id="updatePwd" type="button" class="btn btn-block btn-primary">修改密码</button>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
            </div>

        </section>

    </div>
        <!-- Main content -->
</div>

<@netCommon.commonScript />
<script src="${request.contextPath}/static/js/user.js"></script>
</body>
</html>